package com.br.fmn.clubedoimovel.view;

import java.util.ArrayList;

import android.content.Context;
import android.graphics.drawable.Drawable;

import com.br.fmn.clubedoimovel.negocio.map.BalloonItemizedOverlay;
import com.google.android.maps.MapView;
import com.google.android.maps.OverlayItem;

public class PrepareOverlay extends BalloonItemizedOverlay<OverlayItem> {

	private ArrayList<OverlayItem> m_overlays = new ArrayList<OverlayItem>();
	private Context context;
	private MapView mapView;

	public PrepareOverlay(Drawable imagePino, MapView mapView) {
		super(boundCenter(imagePino), mapView);
		this.context = mapView.getContext();
		this.mapView = mapView;
	}

	public void addOverlay(OverlayItem overlay) {
		m_overlays.add(overlay);
		populate();
	}

	@Override
	protected OverlayItem createItem(int i) {
		return m_overlays.get(i);
	}

	@Override
	public int size() {

		return m_overlays.size();
	}

	{
	}
}
